package com.yidu.king.dao;

import com.yidu.king.domain.Person;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository //注入到Spring容器中
public interface PersonMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Person record);

    int insertSelective(Person record);

    Person selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Person record);

    int updateByPrimaryKey(Person record);

    /**
     * 查询人员
     * @param person
     * @return
     */
    List<Person> selectAll(Person person);

    /**
     * 查询行数
     * @param person
     * @return
     */
    int selectCount(Person person);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    int deleteAll(String[] ids);
}